package com.atguigu.springcloud.service.read.impl;

import com.atguigu.springcloud.dao.InterfaceReadDao;
import com.atguigu.springcloud.entities.Payment;
import com.atguigu.springcloud.service.write.PaymentReadService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author hjl
 */
@Service
public class PaymentReadServiceImpl implements PaymentReadService {

    @Resource
    private InterfaceReadDao readDao;

    @Override
    public Payment selectPaymentById(Long id) {
        return readDao.selectPaymentById(id);
    }

}
